<?php
Authenticate::requireTechnic();
$db = Db::getInstance();
$query = sprintf("SELECT * FROM Topic WHERE status=1");
$result = $db->query($query);
$topics = array();
while($row = $result->fetch_assoc()){
	$row['account'] = Account::instance()->getOne($row['accountId']);
	$topics[] = $row;
}
View::display('technic/qa', array('topics'=> $topics));